Phase rule and equilibrium